import request from '@/utils/request'

export default {

    //带条件的分页查询
    getSceneryPageVo(current, limit, teacherQuery) {
        return request({
            url: `/inner/scenery/getSceneryPageVo/${current}/${limit}`,
            method: 'post',
            data: teacherQuery //转化json传递
        })
    },
    //根据删除讲师
    delSceneryById(id) {
        return request({
            url: `/inner/scenery/delSceneryById/${id}`,
            method: 'delete',
        })
    },
    //上传照片
    //根据删除讲师
    fileUploads(id, files) {
        return request({
            url: `/travel/fileUploads/${id}`,
            method: 'post',
            data: files
        })
    },
    //新增讲师
    addScenery(scenery) {
        return request({
            url: `/inner/scenery/addScenery/`,
            method: 'post',
            data: scenery   //转化json传递
        })
    },
    //根据id查询数据，做回显
    getSceneryById(id) {
        return request({
            url: `/inner/scenery/getSceneryById/${id}`,
            method: 'get'
        })
    },
    //执行修改操作
    updateScenery(scenery) {
        return request({
            url: `/inner/scenery/updateScenery`,
            method: 'post',
            data: scenery   //转化json传递
        })
    },
    //根据城市获取酒店信息
    getSceneryByCountry(country) {
        return request({
            url: `/inner/scenery/getSceneryByCountry/${country}`,
            method: 'get',
        })
    },
    //执行修改操作
    getScenerySta(sceneryVo) {
        return request({
            url: `/inner/scenery/getScenerySta`,
            method: 'post',
            data: sceneryVo   //转化json传递
        })
    },
}